<template>
	<div class="container">
		<!-- 标准管理概览 -->
		<div class="item">
			<Biaozhungl />
		</div>

		<!-- 	在编标准 -->
		<div class="item">
			<zaibianbiaozhun />
		</div>
		<div class="item">
			<biaozhunyingyong />
		</div>
		<div class="item">
			<Qianzhan />
		</div>
		<div class="item">
			<Qianzhandongtai />
		</div>
		<div class="item">
			<Biaozhunfusheng />
		</div>
		<div class="item">
			<Biaozhuntixi />
		</div>
		<div class="item">
			<Tixifenlei />
		</div>
		<div class="item">
			<Xitonguser />
		</div>
	</div>
</template>
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
import { min } from 'xe-utils'
import * as echarts from 'echarts'
import moment from 'moment'
import DynamicTable from './components/DynamicTable.vue'
import {
	countShanghaiStandardApi,
	countStandardChartByYearAndStandardCategoryApi,
	countStandardFormByYearAndStandardCategoryApi
} from '@/api/statistica'
import Biaozhungl from './components/biaozhungl.vue'
import Zaibianbiaozhun from './components/zaibianbiaozhun.vue'
import Biaozhunyingyong from './components/biaozhunyingyong.vue'
import Qianzhan from './components/qianzhan.vue'
import Qianzhandongtai from './components/qianzhandongtai.vue'
import Biaozhunfusheng from './components/biaozhufushen.vue'
import Biaozhuntixi from './components/biaozhuntixi.vue'
import Tixifenlei from './components/tixifenlei.vue'
import Xitonguser from './components/xitonguser.vue'
const zbactivetype = ref(0)

onMounted(() => {})
</script>

<style lang="scss" scoped>
* {
	box-sizing: border-box;
}

.echartsClass {
	// padding: 15px 0px 15px 0px;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
}

/* 容器样式 */
.container {
	/* 满屏宽度 */

	height: calc(100vh - 110px);
	width: 100%;

	/* 视口高度 */
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* 三列等宽 */
	grid-template-rows: repeat(3, 1fr);
	/* 三行等高 */
	gap: 15px;
	/* 格子间距 */
	padding: 10px;
	box-sizing: border-box;
	/* 包含内边距 */
}

/* 每个子项的样式 */
.item {
	// flex: 0 0 32%;
	// /* 每行三个，占 1/3 宽度 */
	// height: 32%;
	// /* 每列三个，占 1/3 高度 */
	display: flex;
	padding: 0px 10px 10px 10px;

	/* 防止内容不足时塌陷 */
	border-radius: 8px;
	background-color: #fff;
	flex-direction: column;
	overflow: hidden;
}

/* 响应式：小屏单列 */
@media (max-width: 600px) {
	.container {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(9, 1fr);
	}
}

.title {
	font-size: 15px;
	font-weight: 500;
	color: #333;
}

.tabbj {
	background-color: #f5f6fa;

	border-radius: 3px;
	color: #333;
	padding: 4px 0px;

	span {
		padding: 3px 5px;
		border-radius: 3px;
		margin: 0 3px;

		cursor: pointer;
		transition: all 0.3s ease;
		/* 添加过渡动画 */
	}

	.active {
		background-color: #fff;

		// transform: translateY(-3px);
		color: #1491ff;
		/* 轻微上浮效果 */

		/* 阴影动画 */
	}
}

.paddingbottom10 {
	padding-bottom: 10px;
}

.borderea {
	border-bottom: solid 1px #ebeef5;
}

.parent {
	display: flex;
	flex-wrap: wrap;
	/* 允许换行 */
	gap: 10px;
	height: 100%;
	/* 子元素间距 */
}

.child {
	flex: 0 1 calc(50% - 10px);
	/* 撑满父元素宽度的一半，减去间距 */
	min-width: calc(50% - 10px);
	/* 防止内容过少时换行 */
	box-sizing: border-box;
	/* 包含 padding 和 border */
	padding: 15px 10px;
	background: #fafafc;
	border-radius: 5px;
	display: flex;
}

.parenttitle {
	font-size: 14px;
	font-weight: 500;
	color: #666;
}

.parennumber {
	font-size: 12px;

	color: #333;

	span {
		font-size: 15px;
		font-weight: 600;
	}
}
</style>
